﻿<?php include("function.php"); ?>
<?php

header("Content-Type: text/html;charset=utf-8");

$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "data";
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
// 检测连接
if ($conn->connect_error) {
	die("连接失败: " . $conn->connect_error);
}

?>
<!DOCTYPE html>
<html>

<head>
	<title>zhuce</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<link href="resources/css/axure_rp_page.css" type="text/css" rel="stylesheet" />
	<link href="data/styles.css" type="text/css" rel="stylesheet" />
	<link href="files/zhuce/styles.css" type="text/css" rel="stylesheet" />
	<script src="resources/scripts/jquery-3.2.1.min.js"></script>
	<script src="resources/scripts/axure/axQuery.js"></script>
	<script src="resources/scripts/axure/globals.js"></script>
	<script src="resources/scripts/axutils.js"></script>
	<script src="resources/scripts/axure/annotation.js"></script>
	<script src="resources/scripts/axure/axQuery.std.js"></script>
	<script src="resources/scripts/axure/doc.js"></script>
	<script src="resources/scripts/messagecenter.js"></script>
	<script src="resources/scripts/axure/events.js"></script>
	<script src="resources/scripts/axure/recording.js"></script>
	<script src="resources/scripts/axure/action.js"></script>
	<script src="resources/scripts/axure/expr.js"></script>
	<script src="resources/scripts/axure/geometry.js"></script>
	<script src="resources/scripts/axure/flyout.js"></script>
	<script src="resources/scripts/axure/model.js"></script>
	<script src="resources/scripts/axure/repeater.js"></script>
	<script src="resources/scripts/axure/sto.js"></script>
	<script src="resources/scripts/axure/utils.temp.js"></script>
	<script src="resources/scripts/axure/variables.js"></script>
	<script src="resources/scripts/axure/drag.js"></script>
	<script src="resources/scripts/axure/move.js"></script>
	<script src="resources/scripts/axure/visibility.js"></script>
	<script src="resources/scripts/axure/style.js"></script>
	<script src="resources/scripts/axure/adaptive.js"></script>
	<script src="resources/scripts/axure/tree.js"></script>
	<script src="resources/scripts/axure/init.temp.js"></script>
	<script src="resources/scripts/axure/legacy.js"></script>
	<script src="resources/scripts/axure/viewer.js"></script>
	<script src="resources/scripts/axure/math.js"></script>
	<script src="resources/scripts/axure/jquery.nicescroll.min.js"></script>
	<script src="data/document.js"></script>
	<script src="files/zhuce/data.js"></script>
	<script type="text/javascript">
		$axure.utils.getTransparentGifPath = function() {
			return 'resources/images/transparent.gif';
		};
		$axure.utils.getOtherPath = function() {
			return 'resources/Other.html';
		};
		$axure.utils.getReloadPath = function() {
			return 'resources/reload.html';
		};
	</script>
</head>

<body>
	<?php
	$conn->query("SET NAMES UTF8");
	if (empty($_GET) == false) {
		if (login($_GET["user"], $_GET["password"]) == 1) {
			echo ("<script>alert('登陆成功')</script>");
			header('Location: postpc.php');
			exit;
		} else {
			echo ("no");
			echo ("<script>alert('登陆失败')</script>");
		}
	}
	?>
	<form>
		<div id="base" class="">

			<!-- Unnamed (矩形) -->
			<div id="u18" class="ax_default box_1">
				<div id="u18_div" class=""></div>
				<div id="u18_text" class="text " style="display:none; visibility: hidden">
					<p></p>
				</div>
			</div>

			<!-- Unnamed (矩形) -->
			<div id="u19" class="ax_default label">
				<div id="u19_div" class=""></div>
				<div id="u19_text" class="text ">
					<p><span style="text-decoration:none;">用户名</span></p>
				</div>
			</div>

			<!-- Unnamed (矩形) -->
			<div id="u20" class="ax_default label">
				<div id="u20_div" class=""></div>
				<div id="u20_text" class="text ">
					<p><span style="text-decoration:none;">密&nbsp; &nbsp; 码</span></p>
				</div>
			</div>

			<!-- TextBorder (矩形) -->
			<div id="u21" class="ax_default box_2" data-label="TextBorder">
				<div id="u21_div" class=""></div>
				<div id="u21_text" class="text " style="display:none; visibility: hidden">
					<p></p>
				</div>
			</div>

			<!-- username (文本框) -->
			<div id="u22" class="ax_default text_field" data-label="username">
				<div id="u22_div" class=""></div>
				<input id="u22_input" type="text" value="" class="u22_input" name="user" />
			</div>

			<!-- login (矩形) -->
			<div id="u23" class="ax_default box_3" data-label="login">
				<div id="u23_div" class=""></div>
				<div id="u23_text" class="text ">
					<input type="submit" value="登陆" style="text-decoration:none;" />
				</div>
			</div>

			<!-- Unnamed (矩形) -->
			<div id="u24" class="ax_default box_3">
				<div id="u24_div" class=""></div>
				<div id="u24_text" class="text " style="display:none; visibility: hidden">
					<p></p>
				</div>
			</div>

			<!-- TextBorder (矩形) -->
			<div id="u25" class="ax_default box_2" data-label="TextBorder">
				<div id="u25_div" class=""></div>
				<div id="u25_text" class="text " style="display:none; visibility: hidden">
					<p></p>
				</div>
			</div>

			<!-- Unnamed (动态面板) -->
			<div id="u26" class="ax_default">
				<div id="u26_state0" class="panel_state" data-label="State1" style="">
					<div id="u26_state0_content" class="panel_state_content">

						<!-- HidePassword (文本框) -->
						<div id="u27" class="ax_default text_field" data-label="HidePassword">
							<div id="u27_div" class=""></div>
							<input id="u27_input" type="password" value="" class="u27_input" name="password" />
						</div>
					</div>
				</div>
				<div id="u26_state1" class="panel_state" data-label="State2" style="visibility: hidden;">
					<div id="u26_state1_content" class="panel_state_content">

						<!-- ShowPassword (文本框) -->
						<div id="u28" class="ax_default text_field" data-label="ShowPassword">
							<div id="u28_div" class=""></div>
							<input id="u28_input" type="text" value="" class="u28_input" />
						</div>
					</div>
				</div>
			</div>

			<!-- Unnamed (SVG) -->
			<div id="u29" class="ax_default _图片1">
				<img id="u29_img" class="img " src="images/login/u12.svg" />
				<div id="u29_text" class="text " style="display:none; visibility: hidden">
					<p></p>
				</div>
			</div>
		</div>
	</form>
	<script src="resources/scripts/axure/ios.js"></script>
</body>

</html>